from django.db import models

class District(models.Model):
    name = models.CharField(max_length=200)
    def __str__(self):
        return self.name   

class Profile(models.Model):
    name = models.CharField(max_length=200)
    def __str__(self):
        return self.name
        
class School(models.Model):
    name = models.CharField(max_length=200)
    link = models.CharField(max_length=200)
    def __str__(self):
        return self.name
    district = models.ForeignKey(District)
    profile = models.ManyToManyField(Profile)